package com.xueyl.springboot.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

	@RequestMapping(value="/index",method=RequestMethod.GET)
	public String index(String name){
		return "welcome: " + name;
	}
}
